userdomain: PROCEDURE;ip=arg(1);if datatype(compress(ip,'.'),'n') then return substr(ip,1,pos('.',ip,pos('.',ip)+1)-1)||'*';pi=translate(strip(lower(reverse(ip))),' ','.');w=words(pi);if w<3 then return ip;do i=3 to w; if ~datatype(word(pi,i),'L') then leave;end;return '*'||translate(reverse(delword(pi,i)),'.',' ')
ison:;if pos(upper(arg(1))' ',upper(getusr())' ')~==0 then return 1;else return 0
gethost: "USERHOST" arg(1);return result
uexists: if pos('@',gethost(arg(1)))~==0 then return 1;else return 0
kick:;'RAW KICK' arg(1) arg(2) ':'arg(3);return 0
mod:;'RAW MODE' channel arg(1);return 0
amrx:;'SAY /RX' arg(1);return 0
ply:
if getclip('sc_playsounds')~=='ON' then return 0
'PLAYSOUND _K11'arg(1)'.snd'
return 0
prsprg:PROCEDURE
x=arg(1)
z=right(x,1)
if z~='/'&z~=':' then x=x||'/'
if upper(left(x,8))='PROGDIR:' then do
y=pragma('d')
z=right(y,1)
if z~='/'&z~=':' then y=y||'/'
if length(x)>8 then return y||substr(x,9);else return y
end
return x
rts:
if ~show('L','rexxreqtools.library') then if ~addlib('rexxreqtools.library',0,-30,0) then do